Espressif Systems /ESP32 /EMAC_MAC /EMACGMIIADDR

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as EMACGMIIADDR

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (MIIBUSY)MIIBUSY 0 (MIIWRITE)MIIWRITE 0MIICSRCLK 0MIIREG0MIIDEV

Description

PHY configuration access

Fields

MIIBUSY

This bit should read logic 0 before writing to PHY Addr Register and PHY data Register.During a PHY register access the software sets this bit to 1’b1 to indicate that a Read or Write access is in progress. PHY data Register is invalid until this bit is cleared by the MAC. Therefore PHY data Register (MII Data) should be kept valid until the MAC clears this bit during a PHY Write operation. Similarly for a read operation the contents of Register 5 are not valid until this bit is cleared. The subsequent read or write operation should happen only after the previous operation is complete. Because there is no acknowledgment from the PHY to MAC after a read or write operation is completed there is no change in the functionality of this bit even when the PHY is not Present.

MIIWRITE

When set this bit indicates to the PHY that this is a Write operation using the MII Data register. If this bit is not set it indicates that this is a Read operation that is placing the data in the MII Data register.

MIICSRCLK

CSR clock range: 1.0 MHz ~ 2.5 MHz. 4’b0000: When the APB clock frequency is 80 MHz the MDC clock frequency is APB CLK/42 4’b0011: When the APB clock frequency is 40 MHz the MDC clock frequency is APB CLK/26.

MIIREG

These bits select the desired MII register in the selected PHY device.

MIIDEV

This field indicates which of the 32 possible PHY devices are being accessed.

Links

() ()